home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / GraphicViewers / ViewGif2 / Source / ViewBitmap.h < prev    next >
Text File  |  1991-08-14  |  1KB  |  38 lines

  1. /***************************************************************************/
  2. /* ViewBitmap.h - interface file for ViewBitmap class               */
  3. /* January 1990   Carl F. Sutter                       */
  4. /***************************************************************************/
  5.  
  6. #import <appkit/View.h>
  7. #import <appkit/obsoleteBitmap.h>
  8.  
  9. @interface ViewBitmap:View
  10.    {
  11.    Bitmap    *bmpImage;    /* bitmap displayed in the window */
  12.    NXSize    nxsBitmap;    /* size of bitmap being displayed */
  13.    NXPoint    nxpTopLeft;    /* top left corner of window */
  14.    char        szTitle[160];    /* window title */
  15.    id        closeNotify;    /* object to notify if the window is closed */
  16.    }
  17.  
  18. /* factory methods */
  19. + newBitmap:(Bitmap *)bmpIn;
  20. + newBitmap:(Bitmap *)bmpIn title:(char *)szTitleIn;
  21. + newBitmap:(Bitmap *)bmpIn title:(char *)szTitleIn topLeft:(NXPoint)nxpTopLeftIn;
  22.  
  23. /* this view's window delegate methods sent to this view to handle */
  24. - windowWillResize:sender toSize:(NXSize *)frameSize;
  25. - windowWillClose:sender;
  26.  
  27. // methods that can be called from the controlling object
  28. - setMiniwindowIcon:(const char *)anIcon;
  29. - (BOOL)saveBitmapToTiff:(const char *)fileName;
  30. - setCloseNotify:notify;
  31.  
  32. /* internal methods */     
  33. - setup;
  34. - drawSelf:(NXRect *)r :(int) count;
  35. - errorAlert:(char *)szMessage;
  36.  
  37. @end
  38.